package cn.fzkj.gulimall.ware.service;

import cn.fzkj.gulimall.ware.vo.PurchaseDoneVo;
import cn.fzkj.gulimall.ware.vo.PurchaseMergeVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.fzkj.common.utils.PageUtils;
import cn.fzkj.gulimall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author chenxin
 * @email chenxin@gmail.com
 * @date 2022-02-17 22:59:33
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /** 查询没有被领取的采购单 */
    PageUtils getUnReceiveList(Map<String, Object> params);

    /** 合并采购需求成采购单 */
    boolean mergePurchase(PurchaseMergeVo purchaseMergeVo);

    /** 领取采购单 */
    boolean receivePurchases(List<Long> ids);

    /** 完成采购 */
    boolean finishPurchase(PurchaseDoneVo vo);
}

